"""
登录页面
"""
from pom.basepage import BasePage



class LoginPage(BasePage):

    def login_with_username_passwd(self,username,passwd):
        self.driver.find_element_by_id('name').send_keys(username)
        self.driver.find_element_by_id('pass').send_keys(passwd)
        self.driver.find_element_by_xpath('//*[@type="submit"]').click()

